Relative Squared Distances to a Conic Berserkless 8-Connected Midpoint Algorithm

نویسنده

  • Valere Huypens
چکیده

The midpoint method or technique is a “measurement” and as each measurement it has a tolerance, but worst of all it can be invalid, called Out-of-Control or OoC. The core of all midpoint methods is the accurate measurement of the difference of the squared distances of two points to the “polar” of their midpoint with respect to the conic. When this measurement is valid, it also measures the difference of the squared distances of these points to the conic, although it may be inaccurate, called Out-of-Accuracy or OoA. The primary condition is the necessary and sufficient condition that a measurement is valid. It is comletely new and it can be checked ultra fast and before the actual measurement starts. . Modeling an incremental algorithm, shows that the curve must be subdivided into “piecewise monotonic” sections, the start point must be optimal, and it explains that the 2D-incremental method can find, locally, the global Least Square Distance. Locally means that there are at most three candidate points for a given monotonic direction; therefore the 2D-midpoint method has, locally, at most three measurements. When all the possible measurements are invalid, the midpoint method cannot be applied, and in that case the ultra fast “OoC-rule” selects the candidate point. This guarantees, for the first time, a 100% stable, ultra-fast, berserkless midpoint algorithm, which can be easily transformed to hardware. The new algorithm is on average (26.5±5)% faster than Mathematica, using the same resolution and tested using 42 different conics. Both programs are completely written in Mathematica and only ContourPlot[] has been replaced with a module to generate the grid-points, drawn with Mathematica’s Graphics[Line{gridpoints}] function. . Index Terms . Midpoint method, two-point method, incremental curve algorithms, squared Euclidean distance, Mathematica, conic, QSIC, generation of CNC-grid points, Bresenham . 1. POINT LATTICE — DIRECTED POLAR — PROPERTIES OF CONICS (FIG.1., FIG.2.) bx = 0, by = 1) FC-FB = -2 SLxy ( |YM| + |XM| ) PD(xA + Sx∆, yA + Sy∆) Sx = -1, Sy = +1)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Conic Fitting Using the Geometric Distance

We consider the problem of fitting a conic to a set of 2D points. It is commonly agreed that minimizing geometrical error, i.e. the sum of squared distances between the points and the conic, is better than using an algebraic error measure. However, most existing methods rely on algebraic error measures. This is usually motivated by the fact that pointto-conic distances are difficult to compute ...

متن کامل

Technical Section EFFICIENT INTEGER ALGORITHMS FOR THE GENERATION OF CONIC SECTIONS

ÐEcient integer 8-connected algorithms for the fast generation of Conic Sections whose axes are aligned to the coordinate axes are described based on a Bresenham-like methodology. Performance results show that in the case of the ellipse, the algorithm is at least as fast as other known integer algorithms but requires lower integer range and always performs correct region transitions. Antialias...

متن کامل

Global Quadratic Optimization via Conic Relaxation

We present a convex conic relaxation for a problem of maximizing an indefinite quadratic form over a set of convex constraints on the squared variables. We show that for all these problems we get at least 12 37 -relative accuracy of the approximation. In the second part of the paper we derive the conic relaxation by another approach based on the second order optimality conditions. We show that ...

متن کامل

Efficient integer algorithms for the generation of conic sections

Efficient integer 8-connected algorithms for the fast generation of Conic Sections whose axes are aligned to the coordinate axes are described based on a Bresenham-like methodology. Performance results show that in the case of the ellipse, the algorithm is at least as fast as other known integer algorithms but requires lower integer range and always performs correct region transitions. Antialia...

متن کامل

A Novel Approach to Orthogonal Distance Least Squares Fitting of General Conics

Fitting of conics to a set of points is a well researched area and is used in many fields of science and engineering. Least squares methods are one of the most popular techniques available for conic fitting and among these, orthogonal distance fitting has been acknowledged as the ’best’ least squares method. Although the accuracy of orthogonal distance fitting is unarguably superior, the proble...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1502.04268  شماره 

صفحات  -

تاریخ انتشار 2015